package com.kl.forum.service;

import com.kl.forum.dao.AppConfigMapper;
import com.kl.forum.dao.FunctionDicMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FunctionDicService {

    @Autowired
    private FunctionDicMapper functionDicMapper;
    @Autowired
    private AppConfigMapper appConfigMapper;

    public List<Map> showFunction(Map<String,Object> map){
        List<Map> list= functionDicMapper.showFunction(map);
        List<Map> list1= appConfigMapper.findOneConfig();
        list.addAll(list1);
        return  list;
    }

    public List<Map> findAllFunction(Map<String, Object> map) {
        return  functionDicMapper.findAllFunction(map);
    }
}
